
<script>
	import store from "@/store/index.js";
	export default {
		onLaunch: function () {
			console.log('App Launch')
			let winHeight=uni.getSystemInfoSync().screenHeight;
			store.state.winHeight=winHeight;
			// #ifdef APP-PLUS
			plus.screen.lockOrientation('portrait-primary'); // 锁定屏幕方向
			// #endif
			uni.getNetworkType({
				success: function (res) {
					store.state.networkType=res.networkType;
					if(res.networkType=="none"){
						store.state.isConnected=false;
					}
				}
			});
		},
		onShow: function () {
			console.log('app show')
			uni.onNetworkStatusChange(function (res) {
				store.state.isConnected=res.isConnected;
				store.state.networkType=res.networkType;
			});
		},
		onHide: function () {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "/static/iconfont/font.css";
	@import "/static/css/common.css";
	@import './components/un-parse/u-parse.css';
	.uni-input-form{height: 100%;}
	.thecolor{
		color: #f06c7a;
	}
</style>
